import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useThemeStore = defineStore(
	'themeStore', ()=>{
		 const needSetTheme = ref(false)
		 const setNeedSetTheme=(val)=>{
			 needSetTheme.value=val
		 }
		 const clearNeedSetTheme=()=>{
			 needSetTheme.value=undefined
		 }
		 return{
			 needSetTheme,
			 setNeedSetTheme,
			 clearNeedSetTheme
		 }
	},
	{
		unistorage: true,
	}
)